<?php
/**
 * The template for displaying the footer.
 *
 * Contains the closing of the id=main div and all content
 * after.  Calls sidebar-footer.php for bottom widgets.
 *
 * @package WordPress
 * @subpackage Arena Softech
 * @since Arena Softech 1.0
 */
?>
			</div><!--.wrapper-->
         </div><!--.indent-->
      </div><!--.container_24-->
 </div><!--.container-->
	<footer id="footer">
		<div class="container">
      
      
      	<div class="footer-bg">
            <div class="container_24">
				<?php //get sidebar footer
					include(TEMPLATEPATH.'/footer_sidebar.php');
				?>
            </div>
         </div><!--.footer-bg-->
            
			<!--
         <div class="container_24">
            <div class="wrapper">
               <nav class="footer">
                  <ul id="menu-footer-menu" class="footer-nav">
						
						<li class="<?php echo($home_menu); ?>"><a class="home" title="<?php _e('Home', 'arena_softech'); ?>" href="<?php echo get_settings('home'); ?>/"><?php _e('Home', 'arena_softech'); ?></a></li>
						<?php
							if($options['menu_type'] == 'categories') {
								wp_list_categories('title_li=0&orderby=name&show_count=0');
							} else {
								wp_list_pages('title_li=0&sort_column=menu_order');
							}
						?>
						<li><a class="lastmenu" href="javascript:void(0);"></a></li>
				</ul>             
					
				</nav>
            </div>
            
         </div>
         -->
         <div class="footer-info">
         	<div class="wrapper">
               <p>
			   <?php
					global $wpdb;
					$post_datetimes = $wpdb->get_row($wpdb->prepare("SELECT YEAR(min(post_date_gmt)) AS firstyear, YEAR(max(post_date_gmt)) AS lastyear FROM $wpdb->posts WHERE post_date_gmt > 1970"));
					if ($post_datetimes) {
						$firstpost_year = $post_datetimes->firstyear;
						$lastpost_year = $post_datetimes->lastyear;

						$copyright = __('Copyright &copy; ', 'inove') . $firstpost_year;
						if($firstpost_year != $lastpost_year) {
							$copyright .= '-'. $lastpost_year;
						}
						$copyright .= ' ';

						echo $copyright;
						echo '<a href="'.get_option('home').'#top">';
						bloginfo('name');
						echo '</a>';
					}
					?>
			   <span>&nbsp;<a href="<?php echo get_option('home'); ?>/?feed=rss2" rel="nofollow">(RSS)</a> </span>
			   </p>
               <strong class="footer-link"><!-- {%FOOTER_LINK} --></strong>
            </div>
         </div>
         
         
		</div><!--.container-->
	</footer>
</div><!--#main-->
<script type='text/javascript' src='<?php echo bloginfo( 'template_directory' ); ?>/js/jquery.form.js'></script>
<script type='text/javascript' src='<?php  echo bloginfo( 'template_directory' ); ?>/js/scripts.js'></script>
 <!-- this is used by many Wordpress features and for plugins to work proporly -->

<script type="text/javascript">
var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));
</script>
<script type="text/javascript">
try {
var pageTracker = _gat._getTracker("UA-7078796-2");
pageTracker._trackPageview();
} catch(err) {}</script>
<?php
	wp_footer();

	$options = get_option('inove_options');
	if ($options['analytics']) {
		echo($options['analytics_content']);
	}
?>
</body>
</html>